<?php
/*
# TCE - Tight Control Environment: Hosting Platform   
# Copyright (c) 2006 by the TightControl Dev Team
# http://tce.mystichost.net
#
#
# License:
#    This program is free software; you can redistribute it and/or
#    modify it under the terms of the MPL Mozilla Public License
#    as published by the Free Software Foundation; either version 1.1    
#    of the License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
#    MPL Mozilla Public License for more details.
#    
#    You may have received a copy of the MPL Mozilla Public License
#    along with this program.
#    
#    An on-line copy of the MPL Mozilla Public License can be found
#    http://www.mozilla.org/MPL/MPL-1.1.html
#
#
# The TCE Home Page is at:
#
#    http://tce.mystichost.net
*/

/* File related exceptions */
class FileException extends Exception{ }
// File Not Found
class FileNotFoundException extends FileException { }
// File Could Not Be Read
class FileReadException extends FileException {}
// File Could Not Be Written
class FileWriteException extends FileException {}

/* Config related exceptions */
class ConfigException extends Exception {}
// Invalid config 'line'
class ConfigInvalidException extends ConfigException {
	function __construct($Filename, $Line){
		parent::__construct("Configuration error. File: $Filename, Line: $Line");
	}
}
/* Language related exceptions */
class LanguageException extends Exception {}
// Language class not found
class LanguageClassNotFoundException  extends LanguageException{}
// Language file not found (not used atm)
class LanguageFileNotFoundException  extends LanguageException{}

/* Database related exceptions */
class DatabaseException extends Exception {}
?>